package vip.specimen.system.datasource.validation;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/25 13:44
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
@Getter
@Setter
public class SystemAliPayConfigValidation {
    @NotBlank(message = "服务器网关地址不可为空")
    private String serverURL; // 服务器地址
    @NotBlank(message = "应用ID不可为空")
    @Pattern(regexp = "^\\d+$",message = "请输入合法的应用ID")
    private String appId; // AppID
    @Size(max = 2048, message = "应用私钥过长")
    private String appPrivateKey; // 应用私钥
    @Size(max = 1024, message = "应用公钥过长")
    private String appPublicKey; // 应用公钥
    @Size(max = 1024, message = "支付宝公钥过长")
    private String aliPayPublicKey; // 支付宝公钥
    private String contentEncryption; // 接口加密
}
